import type { I18nOptions } from "vue-i18n";
import { userLocaleStoreWithOut } from "../store/modules/locale";










async function createI18nOptions(): Promise<I18nOptions>{
    const localeStore = userLocaleStoreWithOut();
    const locale = localeStore.getLocale;
    const defaultLocal = await import(`./lang/${locale}.ts`);
    const message = defaultLocal.default?.message ?? {};
    return {
        legacy: false,
        locale,
        sync: true,
    };
}






